﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Student>" %>

<% using (Html.BeginRouteForm("Default", new { controller = "Students", action = "Edit" }))
   { %>
<%= Html.HiddenFor(s=>s.UserId) %>
    <span>
        <%= Html.DropDownList("QualificationLevelId", (IEnumerable<SelectListItem>)ViewData["Levels"], new { onchange = "loadGroups(this.id,'StudentsGroupId')" })%>
    </span>   
    <span>
        <%= Html.DropDownList("StudentsGroupId", (IEnumerable<SelectListItem>)ViewData["Groups"])%>
    </span>
        <span>
            <% Html.RenderPartial("~/Views/Administrators/Users/UserEditControl.ascx", Model); %>            
        </span>
    <div style="float: right">
        <input type="submit" value="OK" />
    </div>
<%} %>